package 多线程.synchronizeddemo;

/**
 * javap -c Main.class
 * monitorenter 进入synchronized
 * monitorexit 出synchronized
 * monitorexit 异常退出时
 */
public class Main {
    public static void main(String[] args) {
        Object o = new Object();
        synchronized (o){ // monitorenter
            System.out.println("hello");
        } //monitorexit
        // monitorexit
    }
}
